
export const mapToObj = (map: Map<string, any>): Partial<{ [key: string]: unknown }> => {
  const obj: Partial<{ [key: string]: unknown }> = {};
  for (const [k, v] of map) {
    obj[k] = v;
  }
  return obj;
};
